<!DOCTYPE html>
<!-- saved from url=(0017)http://easyds.cn/ -->
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="description" content="最易用的电子元件搜索引擎，数亿电子元器件资料免费下载，面向全球电子硬件开发者，简单、快速、查得到！">
    <meta name="keywords" content="数据手册,元器件手册,芯片资料下载,ic,集成电路,电子元器件,半导体,电子工程,二极管,可控硅,电子元件,晶体管,开关,连接器,电阻,电容,led,传感器">
    <title>电子元件首页</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta content="telephone=no" name="format-detection">
    <script src="__PUBLIC__/js/hm.js"></script>
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/css/weui.css"/>
    <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/css/bootstrap.min.css">
    <script type="text/javascript" src="__PUBLIC__/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/css/share.css">
    <script type="text/javascript" src="__PUBLIC__/js/share.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/css/index.css">
    <script type="text/javascript" src="__PUBLIC__/js/zepto.js"></script>
    <script src="__PUBLIC__/js/index.js"></script>

    <link rel="stylesheet" href="__PUBLIC__/weui/dist/style/weui.css"/>

    <script src="__PUBLIC__/weui/dist/example/zepto.min.js"></script>
    <script>

    </script>
</head>
<body>
<div class="navbar" style="display: block;">
    <div class="navbar-top clearfix">
        <a class="navbar-left" href="javascript:void(0)">
            <!--<img src="__PUBLIC__/images/left_logo.png">-->
            <h2>高可靠元器件平台</h2>
        </a>
        <div id="navbar-right">
            <a class="navbar-menu" id="" href="javascript:void(0)">
                <span class="menu-icon"></span>
            </a>
        </div>
    </div>
    <ul class="navbar-bottom">
        <!--<li>-->
            <!--<a class="" href="#"><img src="__PUBLIC__/images/weixin.png"></a>-->
            <!--<span>反馈</span>-->
        <!--</li>-->
        <!--<li>-->
            <!--<a class="" href="javascript:void(0)" onclick="gosearch()"><img src="__PUBLIC__/images/search.png"></a>-->
            <!--<span>搜索</span>-->
        <!--</li>-->
        <!--<li>-->
            <!--<a class="" href="#"><img src="__PUBLIC__/images/user.png"></a>-->
            <!--<span>登录</span>-->
        <!--</li>-->
    </ul>
</div>
<div class="hiddenDiv">
    <div class="container">
        <div class="nav">
            <a class="nav-right" href="http://easyds.cn/m/login"><img src="__PUBLIC__/images/user-icon.png"></a>
        </div>
    </div>
    <div class="logo-index alldiv" style="margin-top:100px">
        <!--<img src="__PUBLIC__/images/logo.png">-->
        <h1>高可靠元器件平台</h1>
    </div>
    <div class="search">
        <div class="page__bd" >
            <div class="weui-search-bar" id="searchBar">
                <form class="weui-search-bar__form" action="{:U('Cpxl/cpxllist')}" method="get">
                    <div class="weui-search-bar__box">
                        <i class="weui-icon-search"></i>
                        <input type="search" class="weui-search-bar__input" id="searchInput" name="name" placeholder="请输入系列名称,型号,产品分类,供应商查询" required/>
                        <a href="javascript:" class="weui-icon-clear" id="searchClear"></a>
                    </div>
                    <label class="weui-search-bar__label" id="searchText">
                        <i class="weui-icon-search"></i>
                        <span>搜索</span>
                    </label>
                </form>
                <a href="javascript:" class="weui-search-bar__cancel-btn" id="searchCancel">取消</a>
            </div>
        </div>

        <div class="searchtry" id="historysearchkw">
            <span>或者尝试：</span>
            <a href="{:U('Cpxl/cpxllist',array('name'=>'电感器'))}">电感器</a>
            <a href="{:U('Cpxl/cpxllist',array('name'=>'电连接器'))}">电连接器</a>
            <a href="{:U('Cpxl/cpxllist',array('name'=>'电容器'))}">电容器</a>
        </div>
    </div>

    <div class="icon-txt" id="icon-txt" style="">
        <ul onclick="location.href='__CONTROLLER__/test'">
            <li>
                <h2>1.36亿</h2>
                <span>元器件型号</span>
            </li>
            <li>
                <h2>3.22万</h2>
                <span>硬件开发者</span>
            </li>
            <li>
                <h2>1.28万</h2>
                <span>电子厂商</span>
            </li>
        </ul>
    </div>
    <div class="jieshao alldiv zoom" onclick="location.href='__CONTROLLER__/gongn'">
        <a class="topbox"><img src="__PUBLIC__/images/huojian.png"></a>
        <h2>世界最大的元器件搜索引擎</h2>
        <span>看EasyDatasheet有何过人之处&nbsp;&gt;</span>
        <a class="link">功能介绍</a>
    </div>
    <div class="yingbaozhi alldiv zoom" onclick="">
        <a class="topbox"><img src="__PUBLIC__/images/newPage4Img.png"></a>
        <h2>分享硬件那些事儿</h2>
        <span>抓重点、说人话，晒干货、涨姿势&nbsp;&gt;</span>
        <a class="link">硬报纸</a>
    </div>
    <div class="gongneng alldiv zoom" onclick="">
        <a class="topbox"><img width="164" height="76" src="__PUBLIC__/images/what.png"></a>
        <h2>EasyDatasheet更新日志</h2>
        <span>1.5亿数据，300万中文手册，搜索优化&nbsp;&gt;</span>
        <a class="link">新功能</a>
    </div>
    <div class="jifen alldiv zoom" onclick="">
        <a class="topbox"><img src="__PUBLIC__/images/liwu.png"></a>
        <h2>把花掉的积分赚回来！</h2>
        <span>邀请朋友注册，注册即送30元积分&nbsp;&gt;</span>
        <a class="link">分享</a>
    </div>
    <!--<div class="fankuibg zoom" onclick="location.href='__CONTROLLER__/fankui'">-->
        <!--<div class="fankui alldiv">-->
            <!--<a class="topbox" style="font-size: 2em; color:#fff;font-weight: bold;">聊聊你的想法</a>-->
            <!--<h2 class="centerbox">我们的每一点执着 只因为你的信任</h2>-->
            <!--<span style="font-weight: normal;">吐个槽，让我们做的更好&nbsp;&gt;</span>-->
            <!--<a class="link">反馈</a>-->
        <!--</div>-->
    <!--</div>-->
</div>
<div class="searchFixed">
    <div class="navbar2">
        <div class="navbar-top2">
            <a class="navbar-left2" href="http://easyds.cn/m"><img src="__PUBLIC__/images/back-icon.png"></a>
            <div class="search navbar-input">
                <div class="searchBar">
                    <input id="searchBox" type="text" name="name" class="searchtxt" placeholder="输入元器件型号">
                     <span class="search_img_box">
                        <img class="search_img" src="__PUBLIC__/images/search-icon.png">
                    </span>
                    <div class="searchtxtdiv" id="searchwaiting">
                        <a href="javascript:void(0);">
                            <img src="__PUBLIC__/images/loading.gif">
                        </a>
                    </div>
                </div>
            </div>
            <div class="navsearchright" onclick="aa();">
                <a id="navbar-right2" href="javascript:void(0)">搜索</a>
            </div>
        </div>

    </div>

    <div class="searchresults" id="searchresults">        </div>



</div>
<div class="leader" style="display: none;"></div>



<script type="text/javascript">
    $(function(){
        var $searchBar = $('#searchBar'),
                $searchResult = $('#searchResult'),
                $searchText = $('#searchText'),
                $searchInput = $('#searchInput'),
                $searchClear = $('#searchClear'),
                $searchCancel = $('#searchCancel');

        function hideSearchResult(){
            $searchResult.hide();
            $searchInput.val('');
        }
        function cancelSearch(){
            hideSearchResult();
            $searchBar.removeClass('weui-search-bar_focusing');
            $searchText.show();
        }

        $searchText.on('click', function(){
            $searchBar.addClass('weui-search-bar_focusing');
            $searchInput.focus();
        });
        $searchInput
                .on('blur', function () {
                    if(!this.value.length) cancelSearch();
                })
                .on('input', function(){
                    if(this.value.length) {
                        $searchResult.show();
                    } else {
                        $searchResult.hide();
                    }
                })
        ;
        $searchClear.on('click', function(){
            hideSearchResult();
            $searchInput.focus();
        });
        $searchCancel.on('click', function(){
            cancelSearch();
            $searchInput.blur();
        });
    });
    function aa(){
        var name =  $("#searchBox").val();
        location.href = "__CONTROLLER__/lis/name/"+name;
    }
    var webpath = "";

    $(document).ready(function(){                                   //当页面加载时候给搜索框填字

        var sanhuang = window.location.href;

//        alert( window.location.search);
        if(sanhuang.indexOf("?s=")>-1){
            $(".searchFixed").css("display","block");
            var falseurl =  window.location.search;                //获取页面url
            falseurl = falseurl.replace("?s=","");                   //去掉多余的字
            var trueurl = decodeURIComponent(falseurl);              //解码url
            //alert(trueurl);
            $("#searchBox").val(trueurl).focus();                          //给input赋值
            searchchange();
        }
        fixedbottom();
    })

    function fixedbottom(){
        var mtop1 = $(".search").offset().top + $(".search").height() + 126;              //首页首屏固定在屏幕底部
        var mtop2 = $(window).height() - mtop1;
        document.getElementById("icon-txt").style.marginTop = mtop2 + "px";
    }

    window.onload = function(){
        fixedbottom();
    }
    window.onresize = function(){
        fixedbottom();
    }

    $(window).scroll(function(){                   /*页面底部自动隐藏*/
        var scrollTop = $(this).scrollTop();
　　    var scrollHeight = $(document).height();
　　    var windowHeight = $(this).height();
//　　    if(scrollTop + windowHeight == scrollHeight){
　　    if(scrollHeight - scrollTop - windowHeight <= 150){

            $(".leader").css("display","none");
　　    }else{
            $(".leader").css("display","block");
        }
    });
</script>
</body></html>